/*
 * Copyright (C) 2010 Neil Davies
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * This code is base on the Android Gallery widget and was Created 
 * by Neil Davies neild001 'at' gmail dot com to be a Coverflow widget
 * 
 * @author Neil Davies
 */
package cal.lib.coverflow;


import android.app.Activity;
import android.os.Bundle;

import com.cilheo.R;

public class CoverFlowExample extends Activity {
	/** Called when the activity is first created. */
	
	
	private int[] mImageIds = {
			R.drawable.bgand,
			R.drawable.bn1,
			R.drawable.greendroid_logo,
			R.drawable.icon,
			R.drawable.t1
	};
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		CoverFlow coverFlow = new CoverFlow(this);

		coverFlow.setAdapter(new CoverFlowImageAdapter(this,mImageIds));

		coverFlow.setSpacing(-25);
		coverFlow.setSelection(4, true);
		coverFlow.setAnimationDuration(1000);


		setContentView(coverFlow);
	}
}